package com.xr.util;

import java.util.Collection;

/**
 * 集合工具
 *
 * @author Arnold Yang
 */
public class CollectionUtil {

  public static boolean isEmpty(Collection c) {
    return (c == null || c.size() == 0) ? true : false;
  }

  public static boolean isEmpty(Object[] array) {
    return array == null || array.length == 0;
  }

}
